﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using System.Data;
using WLYT.Application.Interfaces;
using WLYT.Domain.Entries;

namespace WLYT.WMS.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    [Authorize]
    public class BoardController(ISqlSugarClient db) : ControllerBase
    {
        /// <summary>
        /// 获取看板数据
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public async Task<DataSet> GetBoardData()
        {
            return await db.Ado.UseStoredProcedure().GetDataSetAllAsync("Get_看板数据");
        }
    }
}
